package com.youmeek.ssh.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.Random;

/**
 * Created by Herrfe on 14-5-8.
 */
@Controller
@RequestMapping("/front/frame")
public class WebFrame {

    @RequestMapping(value = "redirect", method = RequestMethod.GET)
    public String redirect(String page){
        return page;
    }

    @RequestMapping(value = "frame", method = RequestMethod.GET)
     public String frame(){
        return "/frame/frame";
    }

    @RequestMapping(value = "myManage", method = RequestMethod.GET)
    public String myManage(){
        return "/index/myManage";
    }

    @ResponseBody
    @RequestMapping(value = "change", method = RequestMethod.GET)
    public String changeMsg(){
        return String.valueOf(new Random().nextInt());
    }
}
